//
//  YCAudioPlayer.h
//  YCSchool
//
//  Created by Yanglixia on 16/5/15.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YCAudioPlayer : NSObject
@property (nonatomic,readonly) BOOL isPlaying;

@property (nonatomic,readonly) NSString *playingFilePath;

// 播放指定路径下音频（wav）
- (void)asyncPlayWithPath:(NSString *)aFilePath completion:(void(^)(NSError *error))completon;

- (void)asyncPlayAMRFileWithPath:(NSString *)aFilePath completion:(void(^)(NSError *error))completon;

- (void)stopCurrentPlaying;

+ (instancetype)player;
@end
